// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
Vue.config.productionTip = false

// 引入vantUI
import vantUI from 'vant'
import 'vant/lib/index.css'
Vue.use(vantUI)

//引入全局css和js
import './assets/css/reset.css'
import './assets/js/rem'

//创建一个图片服务器
Vue.prototype.$img = 'http://localhost:3000'

//全局过滤器 
import gFilter from "./filter"
for (let attr in gFilter) {
  Vue.filter(attr, gFilter[attr])
}

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})
